package com.vf.admin.miaodong.service.impl;

import com.vf.admin.common.splitpage.SplitPageBean;
import com.vf.admin.miaodong.dao.AfterRoomTypeDao;
import com.vf.admin.miaodong.entity.AppRoomType;
import com.vf.admin.miaodong.service.AfterRoomTypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 房间类型
 */
@Service
public class AfterRoomTypeServiceImpl implements AfterRoomTypeService {

    @Autowired
    AfterRoomTypeDao afterRoomTypeDao;

    /**
     * 查询列表
     */
    @Override
    public List<AppRoomType> list(Map<String,Object> map,SplitPageBean splitPage) {
        return afterRoomTypeDao.list(map,splitPage);
    }

    /**
     * 详情
     */
    @Override
    public AppRoomType get(Integer id) {
        return afterRoomTypeDao.get(id);
    }

    /**
     * 添加/修改
     */
    @Override
    public void save(AppRoomType appRoomType) {
        afterRoomTypeDao.save(appRoomType);
    }

    /**
     * 删除
     */
    @Override
    public void del(Integer id) {
        afterRoomTypeDao.del(id);
    }
}
